﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectBuilder
{
    public static class TimeExtension
    {
        public static long ToUnixTime(this DateTime value)
        {
            var span = (value - new DateTime(1970, 1, 1, 0, 0, 0, 0).ToLocalTime());

            return (long)span.TotalSeconds;
        }
    }
}
